﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WitsWebApi.Entity.Entities;
using WitsWebApi.Entity.EntityParam;
using WitsWebApi.Entity.PageHelper;

namespace WitsWebApi.DataContext.DapperRepositories
{
    public interface IMachineRepository
    {
        /// <summary>
        /// 根据设备名获取指定设备
        /// </summary>
        /// <param name="MachineName"></param>
        /// <returns></returns>
        Task<Machine> GetMachineDetailByName(string MachineName);

        /// <summary>
        /// 添加设备
        /// </summary>
        /// <param name="machineParam"></param>
        /// <returns></returns>
        Task<int> AddMachine(MachineParam machineParam);

        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="machinePageResult"></param>
        /// <returns></returns>
        Task<Paged<Machine>> GetPageList(MachinePageResult machinePageResult);
    }
}

